package com.gupao.vip.aio;

import cn.hutool.core.convert.Convert;
import com.gupao.vip.bio.Constants;

import java.util.Objects;

public class TimeClient {
    public static void main(String[] args) {
        int port = Constants.DEFAULT_PORT;
        if(Objects.nonNull(args) && args.length > 0){
            port = Convert.toInt(args[0], Constants.DEFAULT_PORT);
        }
        new Thread(new AsyncTimeClientHandler(Constants.DEFAULT_IP, port), "AIO-AsyncTimeClientHandler-001").start();
    }
}
